package com.achieve.mqtt.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("webHook")
public class WebHookController {
    @PostMapping("notify")
    public void notifyMsg(@RequestBody Map<Object, Object> body) {
        System.out.println(body);
    }
}
